package com.shd.edanpei.enums;

/**
 * Created by mc on 2018/10/25.
 * yang-wen-wen
 */

public enum RoleEnum {

    unknow(0, "未知角色", "null"),
    user(1, "C端用户", "用户"),
    bank(2, "银行经理", "经理"),
    other(4, "个人代理", "个人代理"),
    boss(5, "个人代理", "个人代理");

    private int id;
    private String des;
    private String intro;

    RoleEnum(int id, String des, String intro) {
        this.id = id;
        this.des = des;
        this.intro = intro;
    }

    public int getId() {
        return id;
    }

    public String getDes() {
        return des;
    }

    public String getIntro() {
        return intro;
    }

    public static String getIntro(int id) {
        RoleEnum[] values = values();
        for (RoleEnum value : values) {
            if (value.getId() == id) {
                return value.getIntro();
            }
        }
        return "";
    }

}
